enum ExampleEnum {
  This = 0,
  That = 1,
}
const theEnum = Math.random() < 0.3 ? ExampleEnum.This : null;
if (theEnum) {
}
/*output:
enum ExampleEnum {
  This = 0,
  That = 1,
}
const theEnum = Math.random() < 0.3 ? ExampleEnum.This : null;
if (theEnum != null) {
}
*/

enum ExampleEnum {
  This = 0,
  That = 1,
}
const theEnum = Math.random() < 0.3 ? ExampleEnum.This : null;
if (!theEnum) {
}
/*output:
enum ExampleEnum {
  This = 0,
  That = 1,
}
const theEnum = Math.random() < 0.3 ? ExampleEnum.This : null;
if (theEnum == null) {
}
*/

enum ExampleEnum {
  This,
  That,
}
const theEnum = Math.random() < 0.3 ? ExampleEnum.This : null;
if (!theEnum) {
}
/*output:
enum ExampleEnum {
  This,
  That,
}
const theEnum = Math.random() < 0.3 ? ExampleEnum.This : null;
if (theEnum == null) {
}
*/

enum ExampleEnum {
  This = '',
  That = 'a',
}
const theEnum = Math.random() < 0.3 ? ExampleEnum.This : null;
if (!theEnum) {
}
/*output:
enum ExampleEnum {
  This = '',
  That = 'a',
}
const theEnum = Math.random() < 0.3 ? ExampleEnum.This : null;
if (theEnum == null) {
}
*/

enum ExampleEnum {
  This = '',
  That = 0,
}
const theEnum = Math.random() < 0.3 ? ExampleEnum.This : null;
if (!theEnum) {
}
/*output:
enum ExampleEnum {
  This = '',
  That = 0,
}
const theEnum = Math.random() < 0.3 ? ExampleEnum.This : null;
if (theEnum == null) {
}
*/

enum ExampleEnum {
  This = 'one',
  That = 'two',
}
const theEnum = Math.random() < 0.3 ? ExampleEnum.This : null;
if (!theEnum) {
}
/*output:
enum ExampleEnum {
  This = 'one',
  That = 'two',
}
const theEnum = Math.random() < 0.3 ? ExampleEnum.This : null;
if (theEnum == null) {
}
*/

enum ExampleEnum {
  This = 1,
  That = 2,
}
const theEnum = Math.random() < 0.3 ? ExampleEnum.This : null;
if (!theEnum) {
}
/*output:
enum ExampleEnum {
  This = 1,
  That = 2,
}
const theEnum = Math.random() < 0.3 ? ExampleEnum.This : null;
if (theEnum == null) {
}
*/

enum ExampleEnum {
  This = 0,
  That = 'one',
}
(value?: ExampleEnum) => (value ? 1 : 0);
/*output:
enum ExampleEnum {
  This = 0,
  That = 'one',
}
(value?: ExampleEnum) => ((value != null) ? 1 : 0);
*/

enum ExampleEnum {
  This = '',
  That = 1,
}
(value?: ExampleEnum) => (!value ? 1 : 0);
/*output:
enum ExampleEnum {
  This = '',
  That = 1,
}
(value?: ExampleEnum) => ((value == null) ? 1 : 0);
*/

enum ExampleEnum {
  This = 'this',
  That = 1,
}
(value?: ExampleEnum) => (!value ? 1 : 0);
/*output:
enum ExampleEnum {
  This = 'this',
  That = 1,
}
(value?: ExampleEnum) => ((value == null) ? 1 : 0);
*/

enum ExampleEnum {
  This = '',
  That = 0,
}
(value?: ExampleEnum) => (!value ? 1 : 0);
/*output:
enum ExampleEnum {
  This = '',
  That = 0,
}
(value?: ExampleEnum) => ((value == null) ? 1 : 0);
*/
